package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

public class UserServiceImpl implements UserService {


//    注入数字
    private int num;
//    注入字母
    private String version;
//    注入对象
    private UserDao userDao;

    public UserServiceImpl(UserDao userDao,int num,String version){
        this.userDao = userDao;
        this.num = num;
        this.version = version;
    }

    public void save() {
        System.out.println("user service is running..." + num + " " + version);
        userDao.save();
    }
}
